package org.yx.controller;

import io.jboot.Jboot;
import io.jboot.web.controller.JbootController;
import io.jboot.web.controller.annotation.RequestMapping;

import com.xiaoleilu.hutool.util.StrUtil;

@RequestMapping("/")
public class IndexController extends JbootController {
	public void index() {
		setAttr("app", StrUtil.removePrefix(Jboot.configValue("jboot.server.contextPath"), "/"));
		renderTemplate("index.html");
	}

	public void m() {
		renderTemplate("m/index.html");
	}
}